<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>flex and grid</title>
    <style>
        .flex-container {
            /* display: -webkit-flex;
             Safari */
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: space-around;
        }

        .flex-container p {
            height: 100px;
            width: 100px;
            border: 1px solid #1d1f1f;
            background-color: indianred;
            text-align: center;
            line-height: 100px;
            border-radius: 10px;
   
        }
        .flex-container {
            /* display: -webkit-flex;
             Safari */
            display: column;
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: space-around;
        }
    </style>
</head>

<body>
    <header>
        <h1>
            flexbox 及 grid 布局练习 </h1>
    </header>
    <main>
        <section>
            <h2>flexbox</h2>

            <div class="flex-container">
                <p> 1</p>
                <p> 2</p>
                <p>3</p>
                <p> 4</p>
                <p> 5</p>
                <p> 6</p>
            </div>
        </section>
        <section>
            <h2>column</h2>

            <div class="column-container">
                <p> 1</p>
                <p> 2</p>
                <p> 3</p>
                <p> 4</p>
                <p> 5</p>
                <p> 6</p>
            </div>
        </section>
    </main>
    <footer>

    </footer>

</body>

</html>
